<?php
// create a dom object
$this->xml = new DOMDocument("1.0");
// create root element 'rsp'
$this->rsp = $this->xml->createElement("rsp");
// add the 'rsp' element to the xml document
$this->xml->appendChild($this->rsp);

// set status for root element 'rsp' to 'ok'
if($this->status=='ok'){
	$this->rsp->setAttribute('status','ok');
} else {
	$this->rsp->setAttribute('status','error');
	$this->rsp->setAttribute('msg','Member could not be deleted.');
}

// save and display tree
print $this->xml->saveXML();
